package cn.edu.gzgs.mapper;

import cn.edu.gzgs.entity.SupportingML;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SupportingMLMapper extends BaseMapper<SupportingML> {
    /**
     * 批量插入佐证材料
     * @param supportingMLList
     */
    void insertBatch(List<SupportingML> supportingMLList);

    /**
     * 根据审核内容ID查询佐证材料列表
     *
     * @param id
     * @return
     */
    @Select("select * from supporting_material where audit_content_id = #{id}")
    List<SupportingML> getListByAuditContentId(Long id);
}
